/**
 * 
 */
package ccrClasses.layer2;

import ccrClasses.ICcr;

/**
 * <ActorRole> specifies the relationship between the clinician and the patient. The supported values are:
 *		Ordering clinician
 *		Prescribing clinician
 *		Treating clinician
 * @author matheus
 *
 */
public class ActorRole implements ICcr{
	public static String OPEN_TAG = "<ActorRole>";

	public static String CLOSE_TAG = "</ActorRole>";
	
	public static String ORDERING = "Ordering clinician";

	public static String PRESCRINBING = "Prescribing clinician";
	
	public static String TREATING = "Treating clinician";
	
	private Text text;	

	public ActorRole(Text value) {
		super();
		this.text = value;
	}

	public ActorRole() {
		super();
	}

	/**
	 * @return the value
	 */
	public Text getValue() {
		return text;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(Text text) {
		this.text = text;
	}

	/**
	 * @return the oPEN_TAG
	 */
	public String getOPEN_TAG() {
		return OPEN_TAG;
	}

	/**
	 * @return the cLOSE_TAG
	 */
	public String getCLOSE_TAG() {
		return CLOSE_TAG;
	}

	/**
	 * @return the oRDERING
	 */
	public String getORDERING() {
		return ORDERING;
	}

	/**
	 * @return the pRESCRINBING
	 */
	public String getPRESCRINBING() {
		return PRESCRINBING;
	}

	/**
	 * @return the tREATING
	 */
	public String getTREATING() {
		return TREATING;
	}

	@Override
	public String constructCcrString() {
		return new String(OPEN_TAG + text.constructCcrString() + CLOSE_TAG);
	}

	/**
	 * @param text the text to set
	 */
	public void setText(Text text) {
		this.text = text;
	}

	/**
	 * @return the text
	 */
	public Text getText() {
		return text;
	}
	
	
	

}
